from django.shortcuts import render
from .models import CarouselImage

def carousel_demo(request):
    images = CarouselImage.objects.all()[:3]  # 获取前3张图片
    return render(request, 'carousel/demo.html', {'images': images})
